package cn.csc.module.member.api.browsinghistory;

import cn.csc.framework.common.pojo.CommonResult;
import cn.csc.module.member.api.browsinghistory.dto.ProductBrowsingHistoryRespDTO;
import cn.csc.module.member.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author 云隐
 * @date 2025/1/3
 **/
@FeignClient(name = ApiConstants.NAME) // TODO fallbackFactory =
@Api(tags = "RPC 服务 - 用户地址")
public interface ProductBrowsingHistoryApi {

    String PREFIX = ApiConstants.PREFIX + "/browsing";

    @GetMapping(PREFIX + "/getProduct")
    @ApiOperation("获得浏览的商品ID")
    CommonResult<List<ProductBrowsingHistoryRespDTO>> getProductList();
}
